package com.nari.system.api;

import com.nari.common.core.constant.ServiceNameConstants;
import com.nari.common.core.domain.R;
import com.nari.system.api.domain.SysRstLog;
import com.nari.system.api.factory.RemoteRstLogFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 报文日志服务
 * 
 * @author quanss
 */
@FeignClient(contextId = "remoteRstLogService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteRstLogFallbackFactory.class)
public interface RemoteRstLogService
{
    /**
     * 保存报文操作日志
     *
     * @param sysRstLog 日志实体
     * @return 结果
     */
    @PostMapping("/rstlog")
    R<Boolean> saveRstLog(@RequestBody SysRstLog sysRstLog);

}
